Kameleon-Plus  0.3.2
cxform.h
Go to the documentation of this file.
1 /*
2 ** cxform.h -- prototypes and headers for Ed's coordinate transform package
3 */
4 
5 #ifndef CXFORM_H
6 #define CXFORM_H
7 
8 
9 typedef double Vec[3];
10 typedef double Mat[3][3];
11 
12 
13 extern int cxform(const char *from,const char *to,const double et,Vec v_in,Vec v_out);
14 
15 char *cxform_err(void);
16 
17 /*
18 ** Utility functions
19 */
20 extern double gregorian_calendar_to_jd(int y, int m, int d, int h, int mi, int s);
21 extern long cxRound(double doub);
22 extern long date2es(int yyyy, int mm, int dd, int hh, int mm2, int ss);
23 
24 /*
25 ** Matrix multiplication and transposition
26 */
27 void mat_transpose(Mat m_in, Mat m_out);
28 void mat_times_mat(Mat m1, Mat m2, Mat m_out);
29 void mat_times_vec(Mat m1, Vec v1, Vec v_out);
30 
32 typedef enum direction Direction;
33 
34 
35 #endif